package com.ruoyi.system.service.vantservice.teamservice.impl;

import com.ruoyi.system.domain.construction.Team;
import com.ruoyi.system.domain.vo.ApiBuildingVo;
import com.ruoyi.system.domain.zhuangxiumain.vo.CpiUrlVo;
import com.ruoyi.system.mapper.construction.TeamMapper;
import com.ruoyi.system.mapper.vant.team.ApiBuildingMapper;
import com.ruoyi.system.service.vantservice.teamservice.ApiBuildingVoService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApiBuildingVoServiceImpl implements ApiBuildingVoService {

    @Autowired(required = false)
    private ApiBuildingMapper apiBuildingMapper;
    @Autowired(required = false)
    private TeamMapper teamMapper;

    @Override
    public List<Team> jianfangList(Team team) {
        return teamMapper.jianfangList(team);
    }

    @Override
    public List<Team> zhuangxiuList(Team team) {
        return teamMapper.zhuangxiuList(team);
    }

    @Override
    public List<Team> tongchengList(Team team) {
        return teamMapper.tongchengList(team);
    }

    @Override
    public List<ApiBuildingVo> findAllList(ApiBuildingVo apiBuildingVo) {
        return apiBuildingMapper.findAllList(apiBuildingVo);
    }

    @Override
    public List<ApiBuildingVo> findAllListTwo(ApiBuildingVo apiBuildingVo) {
        return apiBuildingMapper.findAllListTwo(apiBuildingVo);
    }

    @Override
    public List<ApiBuildingVo> findAllListTwoTong(ApiBuildingVo apiBuildingVo) {
        return apiBuildingMapper.findAllListTwoTong(apiBuildingVo);
    }

    @Override
    public ApiBuildingVo findAllById(Long constructionId) {
        return apiBuildingMapper.findAllById(constructionId);
    }

    @Override
    public List<ApiBuildingVo> findAlladdres(String address) {
        return apiBuildingMapper.findAlladdres(address);
    }

    @Override
    public List<ApiBuildingVo> teamNameJian(String teamName) {
        return apiBuildingMapper.teamNameJian(teamName);
    }

    @Override
    public List<ApiBuildingVo> teamNameZhuang(String teamName) {
        return apiBuildingMapper.teamNameZhuang(teamName);
    }

    @Override
    public List<ApiBuildingVo> teamNameZhuangTong(String teamName) {
        return apiBuildingMapper.teamNameZhuangTong(teamName);
    }

    @Override
    public List<ApiBuildingVo> findAllListAlladdres(String address) {
        return apiBuildingMapper.findAllListAlladdres(address);
    }

    @Override
    public ApiBuildingVo getIdList(Long constructionId) {
        return apiBuildingMapper.getIdList(constructionId);
    }

    @Override
    public List<ApiBuildingVo> findAllListDetails(ApiBuildingVo apiBuildingVo) {
        return apiBuildingMapper.findAllListDetails(apiBuildingVo);
    }

    @Override
    public ApiBuildingVo getDetailsId(Long constructionId) {
        return apiBuildingMapper.getDetailsId(constructionId);
    }

    /**
     * 施工队图片轮播
     * @param constructionId
     * @return
     */
    @Override
    public List<CpiUrlVo> selectCpiUrl(Integer constructionId) {
        return apiBuildingMapper.selectCpiUrl(constructionId);
    }

    @Override
    public List<ApiBuildingVo> shigongList(ApiBuildingVo apiBuildingVo) {
        return apiBuildingMapper.shigongList(apiBuildingVo);
    }

}
